Skip to main content

NBSPlayer

A MIDI player instance

Functions

start

MIDIPlayer:start()

Starts the player


stop

MIDIPlayer:stop()

Stops the player


isPlaying

MIDIPlayer:isPlaying()

Returns true if it is playing.

Returns:

  • [ boolean ] If it is playing.

toggleLoop

MIDIPlayer:toggleLoop( loop )

Toggles song looping.

Arguments:

  • loop [ boolean ] If it should loop or not.

isLooped

MIDIPlayer:isLooped()

Returns true if it is looped

Returns:

  • [ boolean ] If it is looped or not.

update

MIDIPlayer:update()

Plays the actual audio. Needs to be called every tick.